<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>安装</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="amqp.requirements.html">需求</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="amqp.configuration.html">运行时配置</a></div>
 <div class="up"><a href="amqp.setup.html">安装／配置</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="amqp.installation" class="section">
 <h2 class="title">安装</h2>

 <p class="para">
   To install the AMQP PHP extension, you must first install the <a href="https://github.com/alanxz/rabbitmq-c" class="link external">&raquo;&nbsp;librabbitmq</a>
   library. You will need the 0-9-1 version of the rabbitmq-c client library, linked to the rabbitmq-codegen version that corresponds
   to the version of the broker you are using. Use the following steps to download and install the library:
 </p>
  
 <div class="example-contents">
  <div class="shellcode"><pre class="shellcode"># Download the rabbitmq-c library @ version 0-9-1
  git clone git://github.com/alanxz/rabbitmq-c.git
  cd rabbitmq-c
  # Enable and update the codegen git submodule
  git submodule init
  git submodule update
  # Configure, compile and install
  autoreconf -i &amp;&amp; ./configure &amp;&amp; make &amp;&amp; sudo make install</pre>
</div>
 </div>

 <p class="para">
  安装此 PECL 扩展相关的信息可在手册中标题为
<a href="install.pecl.html" class="link">PECL
扩展的安装</a>章节中找到。更多信息如新的发行版本、下载、源文件、
维护人员信息及变更日志等，都在此处：
  <a href="http://pecl.php.net/package/amqp" class="link external">&raquo;&nbsp;http://pecl.php.net/package/amqp</a>.
 </p>

 <p class="para">
  Note to Windows users: This extension does not currently support Windows since the librabbitmq library does not yet support Windows.
 </p>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="amqp.requirements.html">需求</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="amqp.configuration.html">运行时配置</a></div>
 <div class="up"><a href="amqp.setup.html">安装／配置</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
